<template>
	<view>

		<!-- 上半部分 -->
		<view class="up-half-wrapper">
			<view class="wrap">
				<!-- 主要服务 -->
				<view class="service-wrap">
					<a class="name">{{services.companyName || footerInfo.companyName}}</a>
					<view class="line_1"></view>
					<a class="name">客服电话: {{services.customerServicePhone || footerInfo.customerServicePhone}}</a>
					<view class="line_1"></view>
					<a class="name">{{services.companyAddress || footerInfo.companyAddress}}</a>
				</view>
				<!-- 更多服务 -->
				<view class="aboutUs">
					<view class="aboutTop">
						<text>{{services.copyrightNotes}}</text>
						<view class="line_1"></view>
						<a href='https://beian.miit.gov.cn' target="_blank">{{services.icpCertificateNumber || footerInfo.icpCertificateNumber}}</a>
						<view class="line_1"></view>
						<a href='https://beian.miit.gov.cn' target="_blank">{{services.icpRecordNumber || footerInfo.icpRecordNumber}}</a>
						
					</view>
					
				</view>
			</view>
		</view>

		

	</view>
</template>

<script>
	import {
		encrypt,
		decrypt
	} from '@/utils/jsencrypt';
	export default {
		props: {
			footerInfo: {
				type: Object,
				default () {
					return {};
				}
			},
		},
		data() {
			return {
				services:uni.getStorageSync('footerInfo'),
				hiddenWechatInfo: true
			}
		},
		onShow() {
			this.init()
		},
		methods: {
			closeDialog() {
				this.hiddenWechatInfo = true;
			},
			openOnlineService() {
				window.open('https://support.kefu.mi.com', 'smallwin', 'width=500, height=750, statue=yes');
			},
			toUrl(){
				window.open('https://www.ynxkplay.com/')
			},
			
		}
	}
</script>

<style lang="scss">
	
	.up-half-wrapper {
		padding: 30px 0;
		background-color: #000;
		width: 100%;
		.line_1{
			width: 1px;height: 15px;margin: 0 10px;background: #fff;
		} 
		.aboutUs{
			max-width: $page-width;
			min-width: $page-minwidth;
			margin-top: 10px;
			color: #f1f1f1;
			display: flex;align-items: center;justify-content: center;
			flex-direction: column;
		}
		.aboutTop{
			@extend %flex-align-center;
			a{text-decoration: none;color:#f1f1f1;}
			 a:hover, a:visited, a:link, a:active {
			    color:#f1f1f1;
			    // 设置使所有a标签的四种状态都和本身颜色保持一致，样式代码自己写
			}
			a{
				cursor: pointer;
			}
			a:hover {
				color: $color-primary;
			}
		}
		.aboutBottom{
			margin-top: 10px;
			cursor: pointer;
			&:hover {
				color: $color-primary;
			}
		}
		.wrap {
			max-width: $page-width;			min-width: $page-minwidth;
			margin: 0 8vw;
			.service-wrap {
				
				@extend %flex-align-center;
				justify-content: center;
				color: #f1f1f1;
				font-size: 13px;
				lletter-spacing: 2px;
				.service {
					height: 20px;
					@extend %flex-align-center;
					justify-content: center;
					
					transition: color .2s;
					cursor: pointer;
					&:first-child {
						border-left: none;
					}

					&:hover {
						color: $color-primary;
					}

					.icon {
						margin-right: 6px;
						font-size: 24px;
					}

				}
			}

		}
	}

	
	.qrcode {
		width: 680px;
		height: 340px;
	}
</style>
